package com.zc.emos.wx.exception;

import lombok.Data;

/**
 * @author 曾川
 * @version 1.0.0
 * @ClassName EmosException.java
 * @Description 自定义异常类
 * @createTime 2021年11月22日 13:46:00
 */
@Data
public class EmosException extends RuntimeException {

    private String msg;
    private int code = 500;

    public EmosException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public EmosException(String msg, Throwable e) {
        super(msg, e);
        this.msg = msg;
    }

    public EmosException(String msg, int code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }

    public EmosException(String msg, int code, Throwable e) {
        super(msg, e);
        this.msg = msg;
        this.code = code;
    }
}
